<template>
    <h2>父组件</h2>
    <ChildComponent name="榴莲" :count="1" />
    <ChildComponent/>
</template>

<script setup>
import ChildComponent from'./ChildComponent.vue';
</script>

<style scoped>
    h2{
        background-color: darkgoldenrod;
    }
</style>